#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
#include "fonction.h"





int main(int argc, char *argv[])
{
    SDL_Surface *ecran;
    SDL_Init(SDL_INIT_VIDEO);
    freopen("CON","w",stdout);
    freopen("CON","r",stdin);

    ecran=SDL_SetVideoMode(600, 500, 32, SDL_HWSURFACE);

    SDL_WM_SetCaption("mariem darine 2p2", NULL);
     SDL_WM_SetIcon(SDL_LoadBMP("icone.bmp"), NULL);
    SDL_FillRect(ecran, NULL, SDL_MapRGB(ecran->format, 0, 0, 0));
    SDL_Flip(ecran);


    menu(ecran);


    SDL_Quit();

    return EXIT_SUCCESS;
    SDL_FreeSurface(ecran);
}




